//
//  CTPopMenuManager.h
//  IBDP
//
//  Created by cattsoft on 2017/7/14.
//  Copyright © 2017年 cattsoft. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CTPopMenuView.h"

/**  监测点击空白处的时候  */
typedef void (^dismisseAction)();

@class CTPopMenuManager;
@interface CTPopMenuManager : NSObject

@property (nonatomic,copy) dismisseAction dismisseAction;

/**
 外部使用时控制弹出菜单各种样式通过该属性控制
 */
@property (nonatomic,strong) CTPopMenuStyle *menuStyle;

+ (instancetype)sharedManager;

+ (void)showPopMenuWithView:(UIView *)view itemWidth:(CGFloat)width itemHeight:(CGFloat)height items:(NSArray *)itemArr action:(action)action dismissAutomatically:(BOOL)dismissed;

+ (void)setBackgroundColor:(UIColor *)color;

+ (void)setBackgroundView:(UIView *)view;

+ (void)dismiss;

@end
